package com.runen.wnhz.runen.di.module;

import com.runen.wnhz.runen.presenter.Contart.MyCollectionContract;
import com.runen.wnhz.runen.presenter.model.MyCollectionModel;
import com.runen.wnhz.runen.service.MyCollectionApi;

import dagger.Module;
import dagger.Provides;

/**
 * 描述：
 * 作者： 天天童话丶
 * 时间： 2018/6/2.
 */

@Module
public class MyCollectionModule {

    public MyCollectionContract.View view;

    public MyCollectionModule(MyCollectionContract.View view) {
        this.view = view;
    }

    @Provides
    public MyCollectionContract.View provideView(){
        return view;
    }

    @Provides
    public MyCollectionModel provideMyCollectionModel(MyCollectionApi myCollectionApi){
        return new MyCollectionModel(myCollectionApi);
    }
}
